﻿using System.ServiceModel;
using Artech.PetShop.Common;
using Artech.PetShop.Orders.BusinessComponent;
using Artech.PetShop.Orders.BusinessEntity;
using Artech.PetShop.Orders.Service.Interface;
using Microsoft.Practices.Unity;
namespace Artech.PetShop.Orders.Service
{
    public class OrderService :ServiceBase, IOrderService
    {
        [Dependency]
        public OrderBC BusinessComponent
        { get; set; }

        #region IOrderService Members

        [OperationBehavior(TransactionScopeRequired= true)]
        [AuditCallHandler("提交订单")]
        public void Submit(Order order)
        {
            this.BusinessComponent.Submit(order);
        }

        #endregion
    }
}